//入口文件
// console.log('ok')
//导入vue
import Vue from 'Vue'

//1.1导入路由的包
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)

//2.1导入 vue-resource
import Vueresource from 'vue-resource'
//2.1安装 vue-resource
Vue.use(Vueresource)


//导入MUI的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

//按需导入 Mint-UI 中的组件   
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

//1.3导入自己的router.js路由模块
import router from './router.js'


//导入App组件
import app from './App.vue'

var vm = new Vue({
    el:'#app',
    render: e => e(app),
    router  //1.4挂载对象到vm实例上
})